public class Test {
    public static void main(String[] args) {
    girlfrend girlfrend1 =new girlfrend();
    girlfrend1.name="小花";
    girlfrend1.gender="女";
    girlfrend1.age=20;
    girlfrend1.hobby="吃";
        System.out.println("名字："+girlfrend1.name);
        System.out.println("性别："+girlfrend1.gender);
        System.out.println("年龄："+girlfrend1.age);
        System.out.println("爱好："+girlfrend1.hobby);
        girlfrend1.eat();
        girlfrend1.play();
    }
}
